<ion-view view-title="登录">
  <ion-content>
    <ion-list>
      <label class="item item-input">
        <span class="input-label">用户名</span>
        <input type="text" ng-model="user.name">
      </label>
      <label class="item item-input">
        <span class="input-label">密码</span>
        <input type="password" ng-model="user.password">
      </label>
    </ion-list>
    <div class="padding">
      <button class="button button-block button-positive" ng-click="doLogin()">
        立即登录
      </button>
      <p class="text-center">
        <a href="#/forgot-password">找回密码</a>
      </p>

      <p class="text-center">
        <span class="error-msg">
          {{msg.error}}
        </span>
      </p>
    </div>
  </ion-content>
</ion-view>
